package A;

public class Car {
    private String name;
    private String color;
    private String chepai;

    public Car() {
    }
    public Car(String name, String color, String chepai) {
        this.name = name;
        this.color = color;
        this.chepai = chepai;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
    public String getChepai() {
        return chepai;
    }
    public void setChepai(String chepai) {
        this.chepai = chepai;
    }
    public void qidong(){
        System.out.println("启动");
    }
    public void jiasu(){
        System.out.println("加速");
    }
    public void shache(){
        System.out.println("刹车");
    }
}
